package be.jprojects.subscription.logic;

import be.jprojects.subscription.logic.interfaces.IPerson;

public class Person implements IPerson {
	private String firstName, lastName, middleName;
	private int personID;
	private boolean fullyLoaded;

	
	public boolean isFullyLoaded() {
		return fullyLoaded;
	}
	public void setFullyLoaded(boolean fullyLoaded) {
		this.fullyLoaded = fullyLoaded;
	}
	/* (non-Javadoc)
	 * @see be.jprojects.subscription.logic.IPerson#getPersonID()
	 */
	public int getPersonID() {
		return personID;
	}

	/* (non-Javadoc)
	 * @see be.jprojects.subscription.logic.IPerson#setPersonID()
	 */
	public void setPersonID(int personID) {
		this.personID = personID;
	}

	/* (non-Javadoc)
	 * @see be.jprojects.subscription.logic.IPerson#getFirstName()
	 */
	public String getFirstName() {
		return firstName;
	}

	/* (non-Javadoc)
	 * @see be.jprojects.subscription.logic.IPerson#setFirstName(java.lang.String)
	 */
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	/* (non-Javadoc)
	 * @see be.jprojects.subscription.logic.IPerson#getLastName()
	 */
	public String getLastName() {
		return lastName;
	}

	/* (non-Javadoc)
	 * @see be.jprojects.subscription.logic.IPerson#setLastName(java.lang.String)
	 */
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	/* (non-Javadoc)
	 * @see be.jprojects.subscription.logic.IPerson#getMiddleName()
	 */
	public String getMiddleName() {
		return middleName;
	}

	/* (non-Javadoc)
	 * @see be.jprojects.subscription.logic.IPerson#setMiddleName(java.lang.String)
	 */
	public void setMiddleName(String middleName) {
		this.middleName = middleName;
	}
	
	public String toString() {
		return lastName + ((middleName==null)?"":", " + middleName) + ", " +  firstName; 
	}
	
	
}
